/**
 * @author liuxin
 * @e-mail lxtobe5@gmail.com
 * @lasttime 2011 11.03
 * @langversion ActionScript 3.0
 * @playerversion Flash 9.0 - 11.0
 * @tiptext
 */
package SpeedCompare_sample.Array_search
{
	import SpeedCompare_sample.Common;
	
	public class Array_search_forEach extends Common
	{
		public function Array_search_forEach()
		{
			var a:Array = getArray();
			
			setOldTime();
			
			a.forEach(callFunction);
			
			function callFunction(element:*,index:int,arr:Array):void
			{
				if(element == numbers - 1)
				{
					getExecuteTime();
					getSystemInfo();
				}
			}
		}
	}
}
/*
execute time: 422ms
System.freeMemory: 2433024
System.totalMemory: 7643136
System.totalMemoryNumber: 7643136

execute time: 439ms
System.freeMemory: 2269184
System.totalMemory: 7639040
System.totalMemoryNumber: 7639040
*/